/**
 * 该文件用来维护首页接口的请求 API
 */
// 导入封装好的axios
import request from '@/utils/request'
import MockRequest from '@/utils/MockRequest'

// 一个 api 是一个方法, 将方法导出,便于复用

/**
 * @desc 获取三级分类数据
 * @returns Promise
 */
export const reqCategotyList = () => {
  return request.get('/api/product/getBaseCategoryList')
}
/**
 * 获取轮播图数据(模拟)
 * @returns Promise
 */
export const reqSwiperList = () => {
  return MockRequest.get('/swiper')
}
/**
 * 获取楼层数据(模拟)
 * @returns Promise
 */
export const reqFloorList = () => {
  return MockRequest.get('/floor')
}
